/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package post;

/**
 *
 * @author Harry
 */
import java.io.Serializable;
import java.util.*;

public class Transaction implements Serializable {

    private String customerName;
    private TransactionItem[] transItem = new TransactionItem[100];
    private Payment payment;
    private Date date;
    private int numTransItems;
    float amountReceived;
    int cardNum;

    public Transaction() {
        //This method will be deleted
    }

    public Transaction(String customerName, TransactionItem[] transItems, Payment payment, Date date, int numTransItems, float paymentReceived, int cardNum) {
        this.customerName = customerName;
        this.transItem = transItems;
        this.payment = payment;
        this.date = date;
        this.numTransItems = numTransItems;
        this.amountReceived = paymentReceived;
        this.cardNum = cardNum;
    }

    public String getCustomerName() {
        return customerName;
    }

    public TransactionItem[] getTransactionItem() {
        return transItem;
    }

    public Payment getPaymentMode() {
        return payment;
    }

    public Date getDate() {
        return date;
    }

    public int getNumTransItems() {
        return numTransItems;
    }

    public Float getPaymentReceived() {
        return amountReceived;
    }

    public int getCardNum() {
        return cardNum;
    }
}